package com.micro.modual.mapper;


import com.micro.core.frame.mapper.BasicsMapper;
import com.micro.modual.entity.SystemRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
*  <h1></h1>
 * @author levelcoder
 * @version V1.0.0
 * @email LevelCoder@126.com
 * @date 2020-08-04 00:11:10
 */
public interface SystemRoleMapper extends BasicsMapper<SystemRole>{


    /**
     * <h2>校验角色名是否存在</h2>
     * @param roleName 角色名称
     * @return  int
     */
    int findRoleExist(@Param("roleName") String roleName);

    /**
     * <h2>查询角色列表-可用角色</h2>
     * @return
     */
    List<SystemRole> findRoleList();
}
